package com.yyxh.laiojbackend.model.dto.question;

import com.yyxh.laiojbackend.common.PageRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 查询请求
 *

 */
@EqualsAndHashCode(callSuper = true)
@Data
public class QuestionQueryRequest extends PageRequest implements Serializable {

    /**
     * id
     */
    @ApiModelProperty(value = "题目ID",dataType = "Long",required = false,example = "1")
    private Long id;

    /**
     * 标题
     */
    @ApiModelProperty(value = "题目标题",dataType = "String",required = false,example = "A")
    private String title;

    /**
     * 内容
     */
    @ApiModelProperty(value = "题目内容",dataType = "String",required = false,example = "A")
    private String content;

    /**
     * 标签列表（json 数组）
     */
    @ApiModelProperty(value = "题目标签列表",dataType = "List<String>",required = false,example = "[\"栈\",\"简单\"]")
    private List<String> tags;

    /**
     * 创建用户 id
     */
    @ApiModelProperty(value = "题目创建用户ID",dataType = "Long",required = false,example = "1")
    private Long userId;

    /**
     * 题目答案
     */
    @ApiModelProperty(value = "题目答案",dataType = "String",required = false,example = "3")
    private String answer;


    private static final long serialVersionUID = 1L;
}